package com.redjframeworksample.test.web.springframework;

import org.springframework.context.support.ClassPathXmlApplicationContext;

import com.redjframework.aop.Advice;
import com.redjframework.bean.BeanFactory;
import com.redjframework.factory.Clazz;

public class SpringApplicationContext implements BeanFactory {
	ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext("/com/springframework/test/service/service-context.xml");

	@Override
	public <T> T create(Clazz<T> arg0, Object[] arg1, Advice... arg2) {
		return context.getBean(arg0.getClazz());
	}
}
